class PythonUtilities:
    _public_methods_ = [ 'SplitString' ]
    _reg_progid_ = "PythonDemos.Utilities"
    # NEVER copy the following ID 
    # Use "print pythoncom.CreateGuid()" to make a new one.
    _reg_clsid_ = "{276F0A07-C770-4EF4-B0AB-256B28093C1A}"
    
    def SplitString(self, val, item=None):
		import string
		if item != None: item = str(item)
		return ''.join(string.split(str(val), item))
 
# Add code so that when this script is run by
# Python.exe, it self-registers.
if __name__=='__main__':
	print "Registering COM server"
	import win32com.server.register
	win32com.server.register.UseCommandLine(PythonUtilities)
	#win32com.server.register.UnregisterClasses(PythonUtilities)